import request from "@/utils/request";

export const listArticleAPI = (params) => {
  return request.get('/article', { params });
};

export const addArticleAPI = (articleData) => {
  return request.post('/article', articleData);
};

export const updateArticleAPI = (articleData) => {
  return request.put('/article', articleData);
};

export const deleteArticleAPI = (id) => {
  return request.delete('/article', { params: { id } });
};